
  function renderBeforeAfter(container){
    $(container).show();
    $(container).beforeAfter({
        animateIntro:true,
        imagePath:'http://sf-before-after-plugin.googlecode.com/svn/trunk/images/',
        introDuration : 600,
        introPosition : .25,
        showFullLinks : true,
        beforeLinkText: 'Show before image',
        afterLinkText: 'Show after image',
        cursor: 'e-resize',
        enableKeyboard: true,
        dividerColor: '#070'
    });
  }
 window.onload = loadBeforeAfter;
function loadBeforeAfter(){
    var divlist = $(document).find('.beforeafter');
    $(divlist).each(function(index, domEle){
        renderBeforeAfter(domEle);
    })
}